
package se.sll.service.catalogue.gui.api.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;


/**
 * A request to add the specified user to the specified care unit
 * 
 */
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "unitId",
    "hsaId"
})
public class UserAddToUnit {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("unitId")
    @NotNull
    private String unitId;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("hsaId")
    @NotNull
    @Valid
    private List<String> hsaId = new ArrayList<String>();
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    /**
     * 
     * (Required)
     * 
     * @return
     *     The unitId
     */
    @JsonProperty("unitId")
    public String getUnitId() {
        return unitId;
    }

    /**
     * 
     * (Required)
     * 
     * @param unitId
     *     The unitId
     */
    @JsonProperty("unitId")
    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public UserAddToUnit withUnitId(String unitId) {
        this.unitId = unitId;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The hsaId
     */
    @JsonProperty("hsaId")
    public List<String> getHsaId() {
        return hsaId;
    }

    /**
     * 
     * (Required)
     * 
     * @param hsaId
     *     The hsaId
     */
    @JsonProperty("hsaId")
    public void setHsaId(List<String> hsaId) {
        this.hsaId = hsaId;
    }

    public UserAddToUnit withHsaId(List<String> hsaId) {
        this.hsaId = hsaId;
        return this;
    }

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public UserAddToUnit withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

}
